//
//  SDNavigationController.h
//  SKinDiary
//
//  Created by pcyang on 16/6/26.
//  Copyright © 2016年 tencent. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SDBaseViewController.h"

typedef enum SDPageCtlDragbackType_
{
    SDPageCtlDragbackTypeNone = 0,       // 不支持
    SDPageCtlDragbackTypeDefault,    // 全页面支持恒划, 需自行处理手势冲突
    SDPageCtlDragbackTypeLeftEdge    // 左侧边缘恒划返回  ios 7 以上系统支持该选项
}SDPageCtlDragbackType;

@protocol SDNavigationDragBackSupport <NSObject>

- (SDPageCtlDragbackType)dragBackType;

@end

@interface UINavigationController (MySafeTransition)

@property(nonatomic, assign, getter = isTransitionInProgress) BOOL transitionInProgress;

@end

@interface SDNavigationController : UINavigationController<UINavigationControllerDelegate>
{
    UIGestureRecognizer *_recognizer;
}

@property (nonatomic,assign) SDPageCtlDragbackType dragBackType;

- (void)removePaningGesture;
- (void)addPaningGesture:(SDBaseViewController *)viewCtl;

+ (UIImage*)screenshot;

@property (nonatomic,assign) BOOL isMoving;

// 安全推进，退出模式,不截图
- (void)beginSafeMode;
- (void)endSafeMode;

- (void)confirmDragbackGesture:(UIViewController *)viewCtl;

// 添加堆栈图片
- (UIImage *)pushScreenShot;
- (void)removeCurScreenShot;

@end

